﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sharp.Domain.PlatformBoundedContext.OrgModule.Aggregates;
using Sharp.Domain.PlatformBoundedContext.PersonModule.Aggregates;
using Sharp.Domain.PlatformBoundedContext.UserModule.Aggregates;

namespace Sharp.Domain.PlatformBoundedContext
{
    /// <summary>
    /// 数据权限配置
    /// </summary>
    /// <remarks>映射领域模型到Code，方便区别当前查询要去哪个模块的权限配置找</remarks>
    public class DataPermissionConfig
    {
        private static readonly Dictionary<Type, string> dic;

        static DataPermissionConfig()
        {
            //不需要配置数据权限的模块不用加进来这里，比如通知、消息
            dic = new Dictionary<Type, string>();
            dic.Add(typeof(User), "001001");
            dic.Add(typeof(Employee), "003001");
        }

        public static Dictionary<Type, string> Dictionary => dic;
    }
}